UkrSolution\BarcodeScanner\API\actions\CartScannerActions D

Total Complexity 405
Dependencies 16
Dependents 4
Total lines 1,587
Lines of code 1,185
Logical lines of code 766
Comment lines 0
Methods 25
Properties 11

Methods 25

Method Rating Maintainability Complexity Lines of code
orderCreate()
D
5
117 300
getCartDetails()
D
22
43 187
addItem()
D
32 37 84
addItemToCart()
D
32 31 99
updateQuantity()
C
35 26 70
initCoupon()
C
39 25 56
findProductInCart()
B
44 24 40
getDiscountPrice()
A
44 14 47
updateAttributes()
A
46 13 34
cartRecalculate()
A
38 11 64
itemSetPrice()
A
48 11 29
getWcCheckoutErrors()
A
56 8 18
setOrderTotal()
S
59 8 13
getCartRecords()
S
51 7 24
getStatuses()
S
54 6 21
formatPriceForUpdate()
S
56 5 19
getCartItems()
S
57 5 17
cartClear()
S
55 4 18
removeItem()
S
57 2 16
conditionally_send_wc_email()
S
66 2 9
cleanObOutput()
S
70 2 6
changeQuantityInCart()
S
69 1 6
getWcErrors()
S
82 1 3
initFieldPrice()
S
79 1 3
wcSession()
S
91 1 2